package org.cassandra.sajith.myapp.main;

import java.util.List;
import java.util.Map;

import org.apache.cassandra.thrift.Cassandra;
import org.apache.cassandra.thrift.Mutation;
import org.apache.log4j.Logger;
import org.cassandra.sajith.myapp.util.Connector;

public class Prepopulate {

	private static final Logger LOG = Logger.getLogger(Prepopulate.class);
	
	private Cassandra.Client client;
	
	private Connector connector;
	
	public Prepopulate() throws Exception {
		connector = new Connector();
		client = connector.connect();
	}
	
	void prepoulte() {
	
		// insert all hotels
		insertAllHotels();
	}

	private void insertAllHotels() {
	
		String columnFamily = "Hotel";
		
		// row keys
		String closenburgKey = "GL_134";
		String lighthouseKey = "GL_533";
		String heritanceKey = "AH_525";
		String bluewaterKey = "WD_500";
		
		Map<byte[], Map<String, List<Mutation>>> closenburgMutationMap =
			createClosenburgMutationMap(columnFamily, closenburgKey);
	}

	private Map<byte[], Map<String, List<Mutation>>> createClosenburgMutationMap(
			String columnFamily, String closenburgKey) {

		// Set up columns for closenburg
		
		
		return null;
	}
	
}
